package com.sk.sqd.dto;

import com.sk.sqd.builder.StudentBuilder;

import java.io.Serializable;

/**
 * student 数据传输对象
 */
public class StudentDTO implements Serializable {

    private String name;

    private Integer age;

    private String hobby;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "StudentDTO{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", hobby='" + hobby + '\'' +
                '}';
    }

    public StudentDTO() {
    }

    public StudentDTO(String name, Integer age, String hobby) {
        this.name = name;
        this.age = age;
        this.hobby = hobby;
    }

    public static StudentBuilder builder() {
        return new StudentBuilder();
    }
}
